package com.lzx.adx.report.service;


import com.lzs.adx.commmon.service.CrudService;
import com.lzx.adx.report.dto.BackDataDTO;
import com.lzx.adx.report.dto.ReportDTO;
import com.lzx.adx.report.entity.BackDataEntity;
import org.apache.ibatis.annotations.Param;

/**
 * 
 *
 * @author wangzhijun 825400558@qq.com
 * @since 1.0.0 2024-07-05
 */
public interface BackDataService extends CrudService<BackDataEntity, BackDataDTO> {


    public  void saveData(ReportDTO report, String eventType);
    public  void saveData(ReportDTO report, String eventType,Integer type);

    /**
     * 统计总数
     * @param id
     * @param callType
     * @return
     */
    long countTotal(String id, String callType);

    /**
     * 统计当日的消耗
     * @param id
     * @param callType
     * @param day
     * @return
     */
    long countCurrentDayTotal(String id, String callType, String day);
}